package com.shiwaixiangcun.customer.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 *
 * @author Administrator
 * @date 2017/7/25
 */

public class MerchDetailBean implements Parcelable {

    public static final Parcelable.Creator<MerchDetailBean> CREATOR = new Parcelable.Creator<MerchDetailBean>() {
        @Override
        public MerchDetailBean createFromParcel(Parcel source) {
            return new MerchDetailBean(source);
        }

        @Override
        public MerchDetailBean[] newArray(int size) {
            return new MerchDetailBean[size];
        }
    };
    private DataBean data;
    private String message;
    private int responseCode;
    private boolean success;

    public MerchDetailBean() {
    }

    protected MerchDetailBean(Parcel in) {
        this.data = in.readParcelable(DataBean.class.getClassLoader());
        this.message = in.readString();
        this.responseCode = in.readInt();
        this.success = in.readByte() != 0;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(int responseCode) {
        this.responseCode = responseCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.data, flags);
        dest.writeString(this.message);
        dest.writeInt(this.responseCode);
        dest.writeByte(this.success ? (byte) 1 : (byte) 0);
    }

    public static class DataBean implements Parcelable {
        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
        /**
         * atlas : [{"atlasList":[{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252.jpg","fileId":2342,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252_600x600.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAVJZVAABmeC6QFTc874.jpg","fileId":2117,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAVJZVAABmeC6QFTc874_150x150.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAeSO3AACK95SbkTg386.jpg","fileId":2118,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAeSO3AACK95SbkTg386_150x150.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VeAD3jOAAB3D29iLUo571.jpg","fileId":2119,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VeAD3jOAAB3D29iLUo571_150x150.jpg"}],"price":null,"remark":null,"title":"舌尖上的味道-部分菜品"},{"atlasList":[{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9-AULDoAAJWuC51iOo815.jpg","fileId":2343,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9-AULDoAAJWuC51iOo815_600x600.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54WiAKftYAAUFd-oiI_w353.jpg","fileId":2121,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54WiAKftYAAUFd-oiI_w353_150x150.jpg"}],"price":null,"remark":null,"title":"就餐环境"},{"atlasList":[{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN-eAF1BCAAQv5zkfNRQ205.jpg","fileId":2344,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN-eAF1BCAAQv5zkfNRQ205_600x600.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN-6AbY-jAAQv5zkfNRQ000.jpg","fileId":2345,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN-6AbY-jAAQv5zkfNRQ000_600x600.jpg"}],"price":null,"remark":null,"title":"美味价目表"}]
         * basicInformation : {"callButton":"联系订餐","cover":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54UGAG96DAAUSY9iJbSE318_600x600.jpg","description":"五味厨房菜肴味道鲜美，地处格林威治水街C6-15-16，老板有颗追求美食的心，在这里能让你心灵得到放松，并品尝到各种美食。 ","enable":true,"feature":"在这里能让你心灵得到放松，并品尝到各种美食。","id":6,"name":"五味厨房","phone":"18113177737","position":"贵州赤水二郎坝格林威治水街 C6-15-16","recommendIcon":"http://resource.shiwaixiangcun.cn/group1/M00/00/26/rBKx5Vl5zrWAYuIwAAAEiyt6ujA952.png","recommendStr":"美食推荐","sort":null,"type":"美食","typeId":148}
         * certificate : []
         */

        private BasicInformationBean basicInformation;
        private List<AtlasBean> atlas;
        private List<CertificateBean> certificate;

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.basicInformation = in.readParcelable(BasicInformationBean.class.getClassLoader());
            this.atlas = in.createTypedArrayList(AtlasBean.CREATOR);
            this.certificate = in.createTypedArrayList(CertificateBean.CREATOR);
        }

        public BasicInformationBean getBasicInformation() {
            return basicInformation;
        }

        public void setBasicInformation(BasicInformationBean basicInformation) {
            this.basicInformation = basicInformation;
        }

        public List<AtlasBean> getAtlas() {
            return atlas;
        }

        public void setAtlas(List<AtlasBean> atlas) {
            this.atlas = atlas;
        }

        public List<CertificateBean> getCertificate() {
            return certificate;
        }

        public void setCertificate(List<CertificateBean> certificate) {
            this.certificate = certificate;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.basicInformation, flags);
            dest.writeTypedList(this.atlas);
            dest.writeTypedList(this.certificate);
        }

        public static class BasicInformationBean implements Parcelable {
            public static final Parcelable.Creator<BasicInformationBean> CREATOR = new Parcelable.Creator<BasicInformationBean>() {
                @Override
                public BasicInformationBean createFromParcel(Parcel source) {
                    return new BasicInformationBean(source);
                }

                @Override
                public BasicInformationBean[] newArray(int size) {
                    return new BasicInformationBean[size];
                }
            };
            /**
             * callButton : 联系订餐
             * cover : http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54UGAG96DAAUSY9iJbSE318_600x600.jpg
             * description : 五味厨房菜肴味道鲜美，地处格林威治水街C6-15-16，老板有颗追求美食的心，在这里能让你心灵得到放松，并品尝到各种美食。
             * enable : true
             * feature : 在这里能让你心灵得到放松，并品尝到各种美食。
             * id : 6
             * name : 五味厨房
             * phone : 18113177737
             * position : 贵州赤水二郎坝格林威治水街 C6-15-16
             * recommendIcon : http://resource.shiwaixiangcun.cn/group1/M00/00/26/rBKx5Vl5zrWAYuIwAAAEiyt6ujA952.png
             * recommendStr : 美食推荐
             * sort : null
             * type : 美食
             * typeId : 148
             */

            private String callButton;
            private String cover;
            private String description;
            private boolean enable;
            private String feature;
            private Long id;
            private String name;
            private String phone;
            private String position;
            private String recommendIcon;
            private String recommendStr;
            private int sort;
            private String type;
            private Long typeId;

            public BasicInformationBean() {
            }

            protected BasicInformationBean(Parcel in) {
                this.callButton = in.readString();
                this.cover = in.readString();
                this.description = in.readString();
                this.enable = in.readByte() != 0;
                this.feature = in.readString();
                this.id = (Long) in.readValue(Long.class.getClassLoader());
                this.name = in.readString();
                this.phone = in.readString();
                this.position = in.readString();
                this.recommendIcon = in.readString();
                this.recommendStr = in.readString();
                this.sort = in.readInt();
                this.type = in.readString();
                this.typeId = (Long) in.readValue(Long.class.getClassLoader());
            }

            public String getCallButton() {
                return callButton;
            }

            public void setCallButton(String callButton) {
                this.callButton = callButton;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public boolean isEnable() {
                return enable;
            }

            public void setEnable(boolean enable) {
                this.enable = enable;
            }

            public String getFeature() {
                return feature;
            }

            public void setFeature(String feature) {
                this.feature = feature;
            }

            public Long getId() {
                return id;
            }

            public void setId(Long id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getPosition() {
                return position;
            }

            public void setPosition(String position) {
                this.position = position;
            }

            public String getRecommendIcon() {
                return recommendIcon;
            }

            public void setRecommendIcon(String recommendIcon) {
                this.recommendIcon = recommendIcon;
            }

            public String getRecommendStr() {
                return recommendStr;
            }

            public void setRecommendStr(String recommendStr) {
                this.recommendStr = recommendStr;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public Long getTypeId() {
                return typeId;
            }

            public void setTypeId(Long typeId) {
                this.typeId = typeId;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.callButton);
                dest.writeString(this.cover);
                dest.writeString(this.description);
                dest.writeByte(this.enable ? (byte) 1 : (byte) 0);
                dest.writeString(this.feature);
                dest.writeValue(this.id);
                dest.writeString(this.name);
                dest.writeString(this.phone);
                dest.writeString(this.position);
                dest.writeString(this.recommendIcon);
                dest.writeString(this.recommendStr);
                dest.writeInt(this.sort);
                dest.writeString(this.type);
                dest.writeValue(this.typeId);
            }
        }

        public static class AtlasBean implements Parcelable {
            public static final Parcelable.Creator<AtlasBean> CREATOR = new Parcelable.Creator<AtlasBean>() {
                @Override
                public AtlasBean createFromParcel(Parcel source) {
                    return new AtlasBean(source);
                }

                @Override
                public AtlasBean[] newArray(int size) {
                    return new AtlasBean[size];
                }
            };
            /**
             * atlasList : [{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252.jpg","fileId":2342,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252_600x600.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAVJZVAABmeC6QFTc874.jpg","fileId":2117,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAVJZVAABmeC6QFTc874_150x150.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAeSO3AACK95SbkTg386.jpg","fileId":2118,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VaAeSO3AACK95SbkTg386_150x150.jpg"},{"accessUrl":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VeAD3jOAAB3D29iLUo571.jpg","fileId":2119,"thumbImageURL":"http://resource.shiwaixiangcun.cn/group1/M00/00/28/rBKx5Vl54VeAD3jOAAB3D29iLUo571_150x150.jpg"}]
             * price : null
             * remark : null
             * title : 舌尖上的味道-部分菜品
             */

            private String price;
            private String remark;
            private String title;
            private List<AtlasListBean> atlasList;

            public AtlasBean() {
            }

            protected AtlasBean(Parcel in) {
                this.price = in.readString();
                this.remark = in.readString();
                this.title = in.readString();
                this.atlasList = in.createTypedArrayList(AtlasListBean.CREATOR);
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public List<AtlasListBean> getAtlasList() {
                return atlasList;
            }

            public void setAtlasList(List<AtlasListBean> atlasList) {
                this.atlasList = atlasList;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.price);
                dest.writeString(this.remark);
                dest.writeString(this.title);
                dest.writeTypedList(this.atlasList);
            }

            public static class AtlasListBean implements Parcelable {
                public static final Parcelable.Creator<AtlasListBean> CREATOR = new Parcelable.Creator<AtlasListBean>() {
                    @Override
                    public AtlasListBean createFromParcel(Parcel source) {
                        return new AtlasListBean(source);
                    }

                    @Override
                    public AtlasListBean[] newArray(int size) {
                        return new AtlasListBean[size];
                    }
                };
                /**
                 * accessUrl : http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252.jpg
                 * fileId : 2342
                 * thumbImageURL : http://resource.shiwaixiangcun.cn/group1/M00/00/2C/rBKx5VmAN9eAYShWAACXt1NWOpI252_600x600.jpg
                 */

                private String accessUrl;
                private int fileId;
                private String thumbImageURL;

                public AtlasListBean() {
                }

                protected AtlasListBean(Parcel in) {
                    this.accessUrl = in.readString();
                    this.fileId = in.readInt();
                    this.thumbImageURL = in.readString();
                }

                public String getAccessUrl() {
                    return accessUrl;
                }

                public void setAccessUrl(String accessUrl) {
                    this.accessUrl = accessUrl;
                }

                public int getFileId() {
                    return fileId;
                }

                public void setFileId(int fileId) {
                    this.fileId = fileId;
                }

                public String getThumbImageURL() {
                    return thumbImageURL;
                }

                public void setThumbImageURL(String thumbImageURL) {
                    this.thumbImageURL = thumbImageURL;
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeString(this.accessUrl);
                    dest.writeInt(this.fileId);
                    dest.writeString(this.thumbImageURL);
                }
            }
        }

        public static class CertificateBean implements Parcelable {
            public static final Parcelable.Creator<CertificateBean> CREATOR = new Parcelable.Creator<CertificateBean>() {
                @Override
                public CertificateBean createFromParcel(Parcel source) {
                    return new CertificateBean(source);
                }

                @Override
                public CertificateBean[] newArray(int size) {
                    return new CertificateBean[size];
                }
            };
            /**
             * accessUrl : http://resource.shiwaixiangcun.cn/group1/M00/00/3A/rBKx51l6HbuAE8eMAAB6YxNdWvs052.png
             * fileId : 3056
             * thumbImageURL : http://resource.shiwaixiangcun.cn/group1/M00/00/3A/rBKx51l6HbuAE8eMAAB6YxNdWvs052_150x150.png
             */

            private String accessUrl;
            private int fileId;
            private String thumbImageURL;

            public CertificateBean() {
            }

            protected CertificateBean(Parcel in) {
                this.accessUrl = in.readString();
                this.fileId = in.readInt();
                this.thumbImageURL = in.readString();
            }

            public String getAccessUrl() {
                return accessUrl;
            }

            public void setAccessUrl(String accessUrl) {
                this.accessUrl = accessUrl;
            }

            public int getFileId() {
                return fileId;
            }

            public void setFileId(int fileId) {
                this.fileId = fileId;
            }

            public String getThumbImageURL() {
                return thumbImageURL;
            }

            public void setThumbImageURL(String thumbImageURL) {
                this.thumbImageURL = thumbImageURL;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.accessUrl);
                dest.writeInt(this.fileId);
                dest.writeString(this.thumbImageURL);
            }
        }
    }
}
